package com.assistant.logic;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.assistant.dao.domain.SysOperLog;
import com.assistant.service.SysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysOperLogic {
    @Autowired
    private SysOperLogService sysOperLogService;

    public IPage<SysOperLog> sysOperLogsPage(int current, int size){
        Page<SysOperLog> page = Page.of(current,size);
        return sysOperLogService.page(page);
    }
}
